<?php if (!defined('SERVER_ROOT')) {exit('No direct script access allowed');}
//header
$this->template->title = 'Danh mục cán bộ';
$this->template->display('dsp_header.php');
$MA_CAN_BO = $var_macanbo;
$MA_SO_CAN_BO = '';
$TEN_CAN_BO ='';
$TAI_KHOAN ='';
$MAT_KHAU ='';
$CMND ='';
$NGAY_CAP ='';
$NOI_CAP ='';
$NOI_SINH ='';
$NGAY_SINH ='';
$GIOI_TINH=0;
$MA_QUOC_TICH='VIET_NAM';
$MA_DAN_TOC='KINH';
$MA_TON_GIAO='KHONG';
$MA_HOC_HAM='GIANG_VIEN';
$MA_HOC_VI='THAC_SI';
$DC_THUONG_TRU ='';
$DC_LIEN_LAC ='';
$NGAY_VAO_DOAN ='';
$NGAY_VAO_DANG ='';
$NGAY_KY_HD ='';
$NGAY_KET_THUC_HD ='';
$DT_DI_DONG ='';
$DT_CO_DINH ='';
$EMAIL ='';
$MA_LOAI_CAN_BO ='';
$SO_TAI_KHOAN ='';
$MA_SO_THUE ='';
$MA_QUYEN_LOAD_DAU_TIEN ='';
$STT_CAN_BO =100;
$TRANG_THAI ='';
$DA_PHAN_TO = -1;
while ($arr = $arr_single_canbo->FetchRow()) {
    $MA_CAN_BO              =$arr['MA_CAN_BO'];
    $MA_SO_CAN_BO           =$arr['MA_SO_CAN_BO'];
    $TEN_CAN_BO             =$arr['TEN_CAN_BO'];
    $TAI_KHOAN              =$arr['TAI_KHOAN'];
    $MAT_KHAU               =$arr['MAT_KHAU'];
    $CMND                   =$arr['CMND'];
    $NGAY_CAP               =$arr['NGAY_CAP2'];
    $NOI_CAP                =$arr['NOI_CAP'];
    $NOI_SINH               =$arr['NOI_SINH'];
    $NGAY_SINH              =$arr['NGAY_SINH2'];
    $GIOI_TINH              =$arr['GIOI_TINH'];
    $MA_QUOC_TICH           =$arr['MA_QUOC_TICH'];
    $MA_DAN_TOC             =$arr['MA_DAN_TOC'];
    $MA_TON_GIAO            =$arr['MA_TON_GIAO'];
    $MA_HOC_HAM             =$arr['MA_HOC_HAM'];
    $MA_HOC_VI              =$arr['MA_HOC_VI'];
    $DC_THUONG_TRU          =$arr['DC_THUONG_TRU'];
    $DC_LIEN_LAC            =$arr['DC_LIEN_LAC'];
    $NGAY_VAO_DOAN          =$arr['NGAY_VAO_DOAN'];
    $NGAY_VAO_DANG          =$arr['NGAY_VAO_DANG2'];
    $NGAY_KY_HD             =$arr['NGAY_KY_HD2'];
    $NGAY_KET_THUC_HD       =$arr['NGAY_KET_THUC_HD2'];
    $DT_DI_DONG             =$arr['DT_DI_DONG'];
    $DT_CO_DINH             =$arr['DT_CO_DINH'];
    $EMAIL                  =$arr['EMAIL'];
    $MA_LOAI_CAN_BO         =$arr['MA_LOAI_CAN_BO'];
    $SO_TAI_KHOAN           =$arr['SO_TAI_KHOAN'];
    $MA_SO_THUE             =$arr['MA_SO_THUE'];
    $MA_QUYEN_LOAD_DAU_TIEN =$arr['MA_QUYEN_LOAD_DAU_TIEN'];
    $STT_CAN_BO             =$arr['STT_CAN_BO'];
    $TRANG_THAI             =$arr['TRANG_THAI'];
    $DA_PHAN_TO             =$arr['DA_PHAN_TO'];
}
?>
 <form name="frmMain" id="frmMain" action="" method="POST">
    <?php
      echo $this->hidden('controller', $this->get_controller_url());
      echo $this->hidden('hdn_dsp_single_method', 'dsp_single_canbo');
      echo $this->hidden('hdn_dsp_all_method', 'dsp_all_canbo');
      echo $this->hidden('hdn_update_method', 'update_canbo');
      echo $this->hidden('hdn_delete_method', 'delete_canbo');
      echo $this->hidden('hdn_item_id', $MA_CAN_BO);
      echo $this->hidden('txt_MA_CAN_BO', $MA_CAN_BO);
      if ($MA_CAN_BO == 0) {
          echo $this->hidden('hdn_update_type', 'THEM_MOI');
      } else {
          echo $this->hidden('hdn_update_type', 'CAP_NHAT');
      }
    ?>
    <div id="div_tieudecanbo" style="text-align: center;">
           <h3 style="text-transform: uppercase">
           <?php if ($TEN_CAN_BO ==''){
                        echo 'THÊM MỚI CÁN BỘ';
                 } else{
                        echo $TEN_CAN_BO;
                 }
    ?>
          </h3>
    </div>
    <br />
    <div class="Row">
        <div class="left1-canbo-Col">Mã cán bộ <label class="required">(*)</label> </div>
        <div class="left2-canbo-Col">
              <input  type="text" name="txt_MA_SO_CAN_BO" id="txt_MA_SO_CAN_BO"
              value="<?php echo $MA_SO_CAN_BO;?>"
                   class="inputbox" maxlength="255" style="width:90%"
                   onKeyDown="return handleEnter(this, event);"
                   data-allownull="no" data-validate="text"
                   data-name="Mã cán bộ"
                   data-xml="no" data-doc="no"
            />

        </div>
        <div class="right1-canbo-Col">Tên cán bộ <label class="required">(*)</label> </div>
        <div class="right2-canbo-Col">
              <input  type="text" name="txt_TEN_CAN_BO" id="txt_TEN_CAN_BO" value="<?php echo $TEN_CAN_BO;?>"
                   class="inputbox" maxlength="255" style="width:90%"
                   onKeyDown="return handleEnter(this, event);"
                   data-allownull="no" data-validate="text"
                   data-name="Tên cán bộ"
                   data-xml="no" data-doc="no"
            />
        </div>
    </div>
    <div class="Row">
        <div class="left1-canbo-Col">Tài khoản <label class="required">(*)</label></div>
        <div class="left2-canbo-Col">
              <input  type="text" name="txt_TAI_KHOAN" id="txt_TAI_KHOAN" value="<?php echo $TAI_KHOAN;?>"
                   class="inputbox" maxlength="255" style="width:90%"
                   onKeyDown="return handleEnter(this, event);"
                   data-allownull="no"
                   data-validate="text"
                   data-name="Tài khoản"
                   data-xml="no" data-doc="no"
            />

        </div>
        <div class="right1-canbo-Col">Mật khẩu </div>
        <div class="right2-canbo-Col">
              <input  type="text" name="txt_MAT_KHAU" id="txt_MAT_KHAU" value="<?php //echo $MAT_KHAU;?>"
                   class="inputbox" maxlength="255" style="width:90%"
                   onKeyDown="return handleEnter(this, event);"
                   data-validate="text"
                   data-name="Mật khẩu"
                   data-xml="no" data-doc="no"
            />
        </div>
    </div>
    <div class="Row">
        <div class="left1-canbo-Col">CMND</div>
        <div class="left2-canbo-Col">
              <input  type="text" name="txt_CMND" id="txt_CMND" value="<?php echo $CMND;?>"
                   class="inputbox" maxlength="255" style="width:90%"
                   onKeyDown="return handleEnter(this, event);"
                   data-validate="text"
                   data-name="CMND"
                   data-xml="no" data-doc="no"
            />

        </div>
        <div class="right1-canbo-Col">Ngày cấp </div>
        <div class="right2-canbo-Col">
              <input readonly="readonly" class="text" id="txt_NGAY_CAP" maxlength="100" name="txt_NGAY_CAP" style="width:70%" type="text" value="<?php echo $NGAY_CAP;?>" />
              <img class="btndate" style="cursor:pointer;margin-top: -30px;" id="btnDateNgayCap" src="<?php echo SITE_ROOT?>public/images/calendar.gif" onclick="DoCal('txt_NGAY_CAP')" />
              <input style="padding:1px;cursor:pointer" type="button" value="Xóa" onclick="btnXoaNgayCap();"/>
        </div>
    </div>
    <div class="Row">
        <div class="left1-canbo-Col">Nơi cấp </div>
        <div class="left2-canbo-Col">
              <input  type="text" name="txt_NOI_CAP" id="txt_NOI_CAP" value="<?php echo $NOI_CAP;?>"
                   class="inputbox" maxlength="255" style="width:90%"
                   onKeyDown="return handleEnter(this, event);"
                    data-validate="text"
                   data-name="Nơi cấp"
                   data-xml="no" data-doc="no"
            />

        </div>
        <div class="right1-canbo-Col">Nơi sinh </div>
        <div class="right2-canbo-Col">
              <input  type="text" name="txt_NOI_SINH" id="txt_NOI_SINH" value="<?php echo $NOI_SINH;?>"
                   class="inputbox" maxlength="255" style="width:90%"
                   onKeyDown="return handleEnter(this, event);"
                   data-validate="text"
                   data-name="Nơi sinh"
                   data-xml="no" data-doc="no"
            />
        </div>
    </div>
    <div class="Row">
        <div class="left1-canbo-Col">Ngày sinh <label class="required">(*)</label> </div>
        <div class="left2-canbo-Col">
              <input  type="text" name="txt_NGAY_SINH" id="txt_NGAY_SINH" value="<?php echo $NGAY_SINH;?>"
                   class="inputbox" maxlength="255" style="width:30%"
                   onKeyDown="return handleEnter(this, event);"
                   data-validate="text"
                    readonly="readonly"
                   data-name="ngày sinh"
                   data-xml="no" data-doc="no"
              />
              <img class="btndate" style="cursor:pointer;margin-top: -30px;" id="btnDateNgayVaoDoan" src="<?php echo SITE_ROOT?>public/images/calendar.gif" onclick="DoCal('txt_NGAY_SINH')" />
              <input style="padding:1px;cursor:pointer" type="button" value="Xóa" onclick="btnXoaNgaySinh();"/>
              &nbsp;&nbsp;
              Giới tính:&nbsp;
              <select id="cbx_GIOI_TINH"  name="cbx_GIOI_TINH">
                  <?php if($GIOI_TINH ==0):?>
                     <option value="0" selected="selected">Nam</option>
                     <option value="1">Nữ</option>
                  <?php else:?>
                     <option value="0" >Nam</option>
                     <option value="1" selected="selected">Nữ</option>
                  <?php endif ?>

               </select>

        </div>
        <div class="right1-canbo-Col">Quốc tịch <label class="required">(*)</label> </div>
        <div class="right2-canbo-Col">
              <select id="cbx_MA_QUOC_TICH"  name="cbx_MA_QUOC_TICH" style="width:91%">

                  <?php while ($arr = $arr_all_quoctich->FetchRow()): ?>
                  <?php
                   $MA_QUOC_TICH_CBX=$arr['MA_QUOC_TICH'];
                   $TEN_QUOC_TICH_CBX=$arr['TEN_QUOC_TICH'];
                  ?>
                   <?php if($MA_QUOC_TICH ==$MA_QUOC_TICH_CBX):?>
                     <option value="<?php echo $MA_QUOC_TICH_CBX; ?>" selected="selected"><?php echo $TEN_QUOC_TICH_CBX; ?></option>
                  <?php else:?>
                     <option value="<?php echo $MA_QUOC_TICH_CBX; ?>" ><?php echo $TEN_QUOC_TICH_CBX; ?></option>
                  <?php endif ?>
                  <?php endwhile; ?>
             </select>
        </div>
    </div>
    <div class="Row">
        <div class="left1-canbo-Col">Dân tộc <label class="required">(*)</label> </div>
        <div class="left2-canbo-Col">
             <select id="cbx_MA_DAN_TOC"  name="cbx_MA_DAN_TOC" style="width:91%">

                  <?php while ($arr = $arr_all_dantoc->FetchRow()): ?>
                  <?php
                   $MA_DAN_TOC_CBX=$arr['MA_DAN_TOC'];
                   $TEN_DAN_TOC_CBX=$arr['TEN_DAN_TOC'];
                  ?>
                   <?php if($MA_DAN_TOC ==$MA_DAN_TOC_CBX):?>
                     <option value="<?php echo $MA_DAN_TOC_CBX; ?>" selected="selected"><?php echo $TEN_DAN_TOC_CBX; ?></option>
                  <?php else:?>
                     <option value="<?php echo $MA_DAN_TOC_CBX; ?>" ><?php echo $TEN_DAN_TOC_CBX; ?></option>
                  <?php endif ?>
                  <?php endwhile; ?>
             </select>
        </div>
        <div class="right1-canbo-Col">Tôn giáo <label class="required">(*)</label> </div>
        <div class="right2-canbo-Col">
              <select id="cbx_MA_TON_GIAO"  name="cbx_MA_TON_GIAO" style="width:91%">

                  <?php while ($arr = $arr_all_tongiao->FetchRow()): ?>
                  <?php
                   $MA_TON_GIAO_CBX=$arr['MA_TON_GIAO'];
                   $TEN_TON_GIAO_CBX=$arr['TEN_TON_GIAO'];
                  ?>
                   <?php if($MA_TON_GIAO ==$MA_TON_GIAO_CBX):?>
                     <option value="<?php echo $MA_TON_GIAO_CBX; ?>" selected="selected"><?php echo $TEN_TON_GIAO_CBX; ?></option>
                  <?php else:?>
                     <option value="<?php echo $MA_TON_GIAO_CBX; ?>" ><?php echo $TEN_TON_GIAO_CBX; ?></option>
                  <?php endif ?>
                  <?php endwhile; ?>
             </select>
        </div>
    </div>
    <div class="Row">
        <div class="left1-canbo-Col">Học hàm <label class="required">(*)</label> </div>
        <div class="left2-canbo-Col">
              <select id="cbx_MA_HOC_HAM"  name="cbx_MA_HOC_HAM" style="width:91%">

                  <?php while ($arr = $arr_all_hocham->FetchRow()): ?>
                  <?php
                   $MA_HOC_HAM_CBX=$arr['MA_HOC_HAM'];
                   $TEN_HOC_HAM_CBX=$arr['TEN_HOC_HAM'];
                  ?>
                   <?php if($MA_HOC_HAM ==$MA_HOC_HAM_CBX):?>
                     <option value="<?php echo $MA_HOC_HAM_CBX; ?>" selected="selected"><?php echo $TEN_HOC_HAM_CBX; ?></option>
                  <?php else:?>
                     <option value="<?php echo $MA_HOC_HAM_CBX; ?>" ><?php echo $TEN_HOC_HAM_CBX; ?></option>
                  <?php endif ?>
                  <?php endwhile; ?>
             </select>

        </div>
        <div class="right1-canbo-Col">Học vị <label class="required">(*)</label></div>
        <div class="right2-canbo-Col">
              <select id="cbx_MA_HOC_VI"  name="cbx_MA_HOC_VI" style="width:91%">

                  <?php while ($arr = $arr_all_hocvi->FetchRow()): ?>
                  <?php
                   $MA_HOC_VI_CBX=$arr['MA_HOC_VI'];
                   $TEN_HOC_VI_CBX=$arr['TEN_HOC_VI'];
                  ?>
                   <?php if($MA_HOC_VI ==$MA_HOC_VI_CBX):?>
                     <option value="<?php echo $MA_HOC_VI_CBX; ?>" selected="selected"><?php echo $TEN_HOC_VI_CBX; ?></option>
                  <?php else:?>
                     <option value="<?php echo $MA_HOC_VI_CBX; ?>" ><?php echo $TEN_HOC_VI_CBX; ?></option>
                  <?php endif ?>
                  <?php endwhile; ?>
             </select>
        </div>
    </div>
    <div class="Row">
        <div class="left1-canbo-Col">ĐC thường trú</div>
        <div class="left2-canbo-Col">
              <input  type="text" name="txt_DC_THUONG_TRU" id="txt_DC_THUONG_TRU" value="<?php echo $DC_THUONG_TRU;?>"
                   class="inputbox" maxlength="255" style="width:90%"
                   onKeyDown="return handleEnter(this, event);"
                   data-validate="text"
                   data-name="ĐC thường trú"
                   data-xml="no" data-doc="no"
            />

        </div>
        <div class="right1-canbo-Col"> ĐC liên lạc</div>
        <div class="right2-canbo-Col">
              <input  type="text" name="txt_DC_LIEN_LAC" id="txt_DC_LIEN_LAC" value="<?php echo $DC_LIEN_LAC;?>"
                   class="inputbox" maxlength="255" style="width:90%"
                   onKeyDown="return handleEnter(this, event);"
                   data-validate="text"
                   data-name="ĐC liên lạc"
                   data-xml="no" data-doc="no"
            />
        </div>
    </div>
    <div class="Row">
        <div class="left1-canbo-Col">Ngày vào đoàn</div>
        <div class="left2-canbo-Col">
              <input readonly="readonly" class="text" id="txt_NGAY_VAO_DOAN" maxlength="100" name="txt_NGAY_VAO_DOAN" style="width:70%" type="text" value="<?php echo $NGAY_VAO_DOAN;?>" />
              <img class="btndate" style="cursor:pointer;margin-top: -30px;" id="btnDateNgayVaoDoan" src="<?php echo SITE_ROOT?>public/images/calendar.gif" onclick="DoCal('txt_NGAY_VAO_DOAN')" />
              <input style="padding:1px;cursor:pointer" type="button" value="Xóa" onclick="btnXoaNgayVaoDoan();"/>
        </div>
        <div class="right1-canbo-Col"> Ngày vào đảng</div>
        <div class="right2-canbo-Col">
              <input readonly="readonly" class="text" id="txt_NGAY_VAO_DANG" maxlength="100" name="txt_NGAY_VAO_DANG" style="width:70%" type="text" value="<?php echo $NGAY_VAO_DANG;?>" />
              <img class="btndate" style="cursor:pointer;margin-top: -30px;" id="btnDateNgayVaoDang" src="<?php echo SITE_ROOT?>public/images/calendar.gif" onclick="DoCal('txt_NGAY_VAO_DANG')" />
              <input style="padding:1px;cursor:pointer" type="button" value="Xóa" onclick="btnXoaNgayVaoDang();"/>
        </div>
    </div>
    <div class="Row">
        <div class="left1-canbo-Col">Ngày ký HĐ</div>
        <div class="left2-canbo-Col">
              <input readonly="readonly" class="text" id="txt_NGAY_KY_HD" maxlength="100" name="txt_NGAY_KY_HD" style="width:70%" type="text" value="<?php echo $NGAY_KY_HD;?>" />
              <img class="btndate" style="cursor:pointer;margin-top: -30px;" id="btnDateNgayKyHD" src="<?php echo SITE_ROOT?>public/images/calendar.gif" onclick="DoCal('txt_NGAY_KY_HD')" />
              <input style="padding:1px;cursor:pointer" type="button" value="Xóa" onclick="btnXoaNgayKyHD();"/>
        </div>
        <div class="right1-canbo-Col"> Ngày kết thúc HĐ</div>
        <div class="right2-canbo-Col">
              <input readonly="readonly" class="text" id="txt_NGAY_KET_THUC_HD" maxlength="100" name="txt_NGAY_KET_THUC_HD" style="width:70%" type="text" value="<?php echo $NGAY_KET_THUC_HD;?>" />
              <img class="btndate" style="cursor:pointer;margin-top: -30px;" id="btnDateNgayKetThucHD" src="<?php echo SITE_ROOT?>public/images/calendar.gif" onclick="DoCal('txt_NGAY_KET_THUC_HD')" />
              <input style="padding:1px;cursor:pointer" type="button" value="Xóa" onclick="btnXoaNgayKetThucHD();"/>

        </div>
    </div>
    <div class="Row">
        <div class="left1-canbo-Col">ĐT di động</div>
        <div class="left2-canbo-Col">
              <input  type="text" name="txt_DT_DI_DONG" id="txt_DT_DI_DONG" value="<?php echo $DT_DI_DONG;?>"
                   class="inputbox" maxlength="255" style="width:90%"
                   onKeyDown="return handleEnter(this, event);"
                   data-validate="text"
                   data-name="ĐT di động"
                   data-xml="no" data-doc="no"
            />

        </div>
        <div class="right1-canbo-Col">ĐT cố định </div>
        <div class="right2-canbo-Col">
              <input  type="text" name="txt_DT_CO_DINH" id="txt_DT_CO_DINH" value="<?php echo $DT_CO_DINH;?>"
                   class="inputbox" maxlength="255" style="width:90%"
                   onKeyDown="return handleEnter(this, event);"
                   data-validate="text"
                   data-name="ĐT cố định"
                   data-xml="no" data-doc="no"
            />
        </div>
    </div>
    <div class="Row">
        <div class="left1-canbo-Col">Email</div>
        <div class="left2-canbo-Col">
              <input  type="text" name="txt_EMAIL" id="txt_EMAIL" value="<?php echo $EMAIL;?>"
                   class="inputbox" maxlength="255" style="width:90%"
                   onKeyDown="return handleEnter(this, event);"
                   data-validate="text"
                   data-name="Email"
                   data-xml="no" data-doc="no"
            />

        </div>
        <div class="right1-canbo-Col">Loại cán bộ <label class="required">(*)</label> </div>
        <div class="right2-canbo-Col">
              <select id="cbx_MA_LOAI_CAN_BO"  name="cbx_MA_LOAI_CAN_BO" style="width:91%">

                  <?php while ($arr = $arr_all_loaicanbo->FetchRow()): ?>
                  <?php
                   $MA_LOAI_CAN_BO_CBX=$arr['MA_LOAI_CAN_BO'];
                   $TEN_LOAI_CAN_BO_CBX=$arr['TEN_LOAI_CAN_BO'];
                  ?>
                   <?php if($MA_LOAI_CAN_BO ==$MA_LOAI_CAN_BO_CBX):?>
                     <option value="<?php echo $MA_LOAI_CAN_BO_CBX; ?>" selected="selected"><?php echo $TEN_LOAI_CAN_BO_CBX; ?></option>
                  <?php else:?>
                     <option value="<?php echo $MA_LOAI_CAN_BO_CBX; ?>" ><?php echo $TEN_LOAI_CAN_BO_CBX; ?></option>
                  <?php endif ?>
                  <?php endwhile; ?>
             </select>
        </div>
    </div>
    <div class="Row">
        <div class="left1-canbo-Col">Số tài khoản </div>
        <div class="left2-canbo-Col">
              <input  type="text" name="txt_SO_TAI_KHOAN" id="txt_SO_TAI_KHOAN" value="<?php echo $SO_TAI_KHOAN;?>"
                   class="inputbox" maxlength="255" style="width:90%"
                   onKeyDown="return handleEnter(this, event);"
                   data-validate="text"
                   data-name="Số tài khoản"
                   data-xml="no" data-doc="no"
            />

        </div>
        <div class="right1-canbo-Col">Mã số thuế </div>
        <div class="right2-canbo-Col">
              <input  type="text" name="txt_MA_SO_THUE" id="txt_MA_SO_THUE" value="<?php echo $MA_SO_THUE;?>"
                   class="inputbox" maxlength="255" style="width:90%"
                   onKeyDown="return handleEnter(this, event);"
                   data-validate="text"
                   data-name="Mã số thuế"
                   data-xml="no" data-doc="no"
            />
        </div>
    </div>









    <div class="Row">
        <div class="left1-canbo-Col">STT <label class="required">(*)</label> </div>
        <div class="left2-canbo-Col">
              <input  type="text" name="txt_STT_CAN_BO" id="txt_STT_CAN_BO" value="<?php echo $STT_CAN_BO;?>"
                   class="inputbox" maxlength="255" style="width:90%"
                   onKeyDown="return handleEnter(this, event);"
                   data-allownull="no" data-validate="text"
                   data-name="STT"
                   data-xml="no" data-doc="no"
            />

        </div>
        <div class="right1-canbo-Col">Trạng thái <label class="required">(*)</label> </div>
        <div class="right2-canbo-Col">
              <select id="cbx_TRANG_THAI"  name="cbx_TRANG_THAI">
                  <?php if($TRANG_THAI ==0):?>
                     <option value="0" selected="selected">Mở</option>
                     <option value="1">Đóng</option>
                  <?php else:?>
                     <option value="0" >Mở</option>
                     <option value="1" selected="selected">Đóng</option>
                  <?php endif ?>

               </select>
        </div>
    </div>
    <div class="button-area">
          <?php if($MA_CAN_BO !=0 && $DA_PHAN_TO ==0 ):?>
        <input type="button" name="update" class = 'button save' value="Chọn nơi công tác" onclick="capnhatnoicongtac_onclick();"/>
         <?php endif?>
        <input type="button" name="update" class = 'button save' value="Cập nhật" onclick="update_onclick();"/>
        <input type="button" name="update" class = 'button save' value="Danh sách cán bộ" onclick="location.href='<?php echo SITE_ROOT . 'qlcb/canbo/'?>'"/>
        <input type="button" name="update" class = 'button save' value="Danh sách cán bộ chưa phân nơi công tác" onclick="location.href='<?php echo SITE_ROOT . 'qlcb/canbo/dsp_canbo_chuaphancongtac'?>'"/>
    </div>
</form>
<script>
    function btnXoaNgayCap(){
        $("#txt_NGAY_CAP").val("");
    }
    function btnXoaNgaySinh(){
        $("#txt_NGAY_SINH").val("");
    }
    function btnXoaNgayVaoDoan(){
        $("#txt_NGAY_VAO_DOAN").val("");
    }
    function btnXoaNgayVaoDang(){
        $("#txt_NGAY_VAO_DANG").val("");
    }
     function btnXoaNgayKyHD(){
        $("#txt_NGAY_KY_HD").val("");
    }
     function btnXoaNgayKetThucHD(){
        $("#txt_NGAY_KET_THUC_HD").val("");
    }
    function update_onclick(){
      if (confirm('Bạn chắc chắn cập nhật?')){
          btn_update_onclick();
      }
    }
</script>
<?php $this->template->display('dsp_footer.php');